import request from '@/utils/request'

// 查询短信列表
export function listCatMessageSms(query) {
  return request({
    url: '/system/catMessageSms/list',
    method: 'get',
    params: query
  })
}

// 查询短信详细
export function getCatMessageSms(id) {
  return request({
    url: '/system/catMessageSms/' + id,
    method: 'get'
  })
}

// 新增短信
export function addCatMessageSms(data) {
  return request({
    url: '/system/catMessageSms',
    method: 'post',
    data: data
  })
}

// 修改短信
export function updateCatMessageSms(data) {
  return request({
    url: '/system/catMessageSms',
    method: 'put',
    data: data
  })
}

// 删除短信
export function delCatMessageSms(id) {
  return request({
    url: '/system/catMessageSms/' + id,
    method: 'delete'
  })
}

// 导出短信
export function exportCatMessageSms(query) {
  return request({
    url: '/system/catMessageSms/export',
    method: 'get',
    params: query
  })
}